<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset={dede:global.cfg_soft_lang/}" />
		<title>{dede:field.title/}_{dede:global.cfg_webname/}</title>
		<meta name="keywords" content="{dede:field name='keywords'/}" />
		<meta name="description" content="{dede:field name='description' function='html2text(@me)'/}" />
		<script src="http://www.ijquery.cn/js/jquery-1.9.0.min.js"></script>
		<link href="http://libs.baidu.com/bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet">
		<script src="http://libs.baidu.com/bootstrap/3.0.3/js/bootstrap.min.js"></script>
		<link rel="stylesheet" href="{dede:global.cfg_templets_skin/}/css/dakaifa.css" type="text/css" />
	</head>
	<body>
		<div class="jumbotron">
			<div class="container"> 
				<!-- head start --> 
				{dede:include filename="head.htm" /}
				<!-- head end --> 
				<div class="clearfix mt10"></div>
				<!-- main start --> 
				<div class="row" >
					<!-- left --> 
					<div class="col-xs-8" >
						<div class="panel panel-primary">
							<div class="panel-heading">
								<h3 class="panel-title">
									{dede:field name='position'/}
								</h3>
							</div>
							<!-----------------------------以下这段代码为织织网工作室联动菜单筛选示例------------------------------->
   <div style="border:1px solid #f00; width:698px; line-height:30px; padding:6px;">
       
       <!--------------------下拉列表式筛选开始-------------------->
       <div style="border-bottom:1px dotted #CCC;"><form action="{dede:global.cfg_cmsurl/}/plus/list_filter.php?tid={dede:field.typeid/}" method="post">下拉列表式筛选示例：
       {dede:php} echo getFilter('13,15',0,0); {/dede:php}
       <input type="submit" value="提交" /></form></div>
       <!--------------------//下拉列表式筛选结束-------------------->
       
       <!--------------------复选框式筛选开始-------------------->
       <div style="border-bottom:1px dotted #CCC;"><form action="{dede:global.cfg_cmsurl/}/plus/list_filter.php?tid={dede:field.typeid/}" method="post">复选框式筛选示例：<br />
       {dede:php} echo getFilter('13,15',0,2); {/dede:php}
       <input type="submit" value="提交" /></form></div>
       <!--------------------//复选框式筛选结束-------------------->
       
       <!--------------------单选按钮式筛选开始-------------------->
       <div style="border-bottom:1px dotted #CCC;"><form action="{dede:global.cfg_cmsurl/}/plus/list_filter.php?tid={dede:field.typeid/}" method="post">单选按钮型示例（不能实现多选，不推荐）：<br />
       {dede:php} echo getFilter('13,15',0,1); {/dede:php}
       <input type="submit" value="提交" /></form></div>
       <!--------------------//单选按钮式筛选结束-------------------->
       
       <!--------------------链接型筛选开始-------------------->
       <script language="javascript">
            //筛选js代码，用来处理url，原理比较复杂，在此不一一详解
			function addFilters(fname,value,typeid) {
                var url = location.href;
                if (url.indexOf("list_filter.php")==-1) {
                    url="{dede:global.cfg_cmsurl/}/plus/list_filter.php?tid={dede:field.typeid/}&filter[]="+value;
                }else{
                    var filterStr;
                    filterStr = url.split("{");
                    for (var i=1; i<filterStr.length; i++){
                        if (filterStr[i].indexOf(fname)!=-1) {
                            url = url.replace("{"+filterStr[i],value);
                        }
                    }
                    if (url.indexOf(fname)==-1) {
                        url += (url.indexOf("filter[]")!=-1) ? value : "&filter[]="+value;
                    }
					if (url.indexOf("{")==-1) {
                        url = url.replace("&filter[]=","");
                    }
                }
                window.location = url;
            }
       </script>   
       <div style="line-height:30px;">链接型示例（配合js可实现多选）：<br />
       {dede:php} echo getFilter('13,15',0,3,''); {/dede:php}
       </div>
       <!--------------------//链接型筛选结束-------------------->
       
   </div>
   <!-----------------------------//织织网工作室联动菜单筛选示例结束------------------------------->
							<div class="panel-body">
								<ul class="ul_list1">
									{dede:list pagesize='35'}
									<li> 
										[<b>[field:typelink/]</b>] <a href="[field:arcurl/]" title="[field:fulltitle/]">[field:title/]</a>
									</li>
									{/dede:list}
								</ul>
								<div class="clearfix mt1"></div>
								<ul class="pagination pagination-sm">
									{dede:pagelist listitem="info,index,end,pre,next,pageno,option" listsize="5"/}
								</ul>
							</div>
						</div>
					</div>
					<!-- right --> 
					{dede:include filename="right.htm" /}
				</div>
				{dede:include filename="footer.htm" /}
			</div>
			<!-- main end --> 
			
		</div>
	</body>
</html>
